package cn.elead.chaos.sso.server.web.monitor.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.elead.chaos.mybatils.web.controller.BaseController;

/**
 * swagger 接口
 * 
 * @author ruoyi
 */
@Controller
@RequestMapping("/tool")
public class SwaggerController extends BaseController
{
    @GetMapping("swagger")
    //@RequiresPermissions("tool:swagger:view")
    public String index()
    {
        return redirect("/swagger-ui.html");
    }
    
    @GetMapping("doc")
   // @RequiresPermissions("tool:doc:view")
    public String doc()
    {
    	return redirect("/doc.html");
    }
}
